import java.util.Scanner;

public class Exercise_FindSum {
    public static void main(String[] args) {
        int[] arr={1,34,17,23,9,7};
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入你要查找的数字：");
        int target=sc.nextInt();
        boolean flag=true;
        for(int i=0;i<arr.length;i++) {
            for(int j=i+1;j<arr.length;j++) {
                if(arr[i] +arr[j]==target){
                    System.out.println("[" + i+","+j+"]");
                    flag=false;
                    break;
                }
            }
        }
        if(flag) {
            System.out.println("没找到");
        }
    }
}
